﻿@model Achievement.DataModels.Users
@{
    ViewBag.Title = "登录";
    Layout = null;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0042)http://www.topve.com/work/2011/09/toplian/ -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>管理登页</title>
    <link rel="stylesheet" type="text/css" href="images/on_index.css">
    <script src="/js/jquery.min.js" type="text/javascript"></script>
    <script language="JavaScript">
<!--
        function checksubmit() {
            if ($("#guest").attr("checked") != "checked") {
                if ($("#username").val() == "") {
                    alert("请输入合法的用户名！");
                    return false;
                }
                if ($("#password").val() == "") {
                    alert("请输入密码！");
                    return false;
                }
            }
            return true;
        }

        function LoginGuest() {
            var text1 = $("#username");
            var text2 = $("#password");
            if (text1.attr("disabled") == "disabled") {
                //通过设置disabled的boolean属性将第三个text输入框disabled属性置为true 
                text1.removeAttr("disabled");
                text2.removeAttr("disabled");
            } else {
                //通过将第三个text输入框disabled属性置为false来移除disabled属性 
                text1.attr("disabled", "disabled");
                text2.attr("disabled", "disabled");
            } 
        }
//-->
    </script>
    <meta name="GENERATOR" content="MSHTML 8.00.7600.16853">
</head>
<body>
    <div style="background:#ffffff;">
        <img src="/images/SG-LOGO4.jpg" style="padding-top:3.5px;"/>
    </div>
    <div class="on_indext">
    <div style=" padding-top:30px"><font color="white" face="微软雅黑"><h1>创新成果建库 服务工程建设</h1></font></div>
        <div class="on_index">
            <div class="box">
                <div class="box_logo">
                    
                </div>
                <div class="login">
                @using (Html.BeginForm("Login", "LogOn", FormMethod.Post, new { id = "form", onsubmit = "return checksubmit();" }))
                {
                    <table class="login-body" border="0" cellspacing="0" cellpadding="0" align="center">
                        <tbody>
                            <tr><td>&nbsp;<br /></td><td></td></tr>
                            <tr><td>&nbsp;<br /></td><td style="color:#007A77;"></td></tr>
                            <tr><td>&nbsp;<br /></td><td style="text-align:left; font-size:0.8em">[当前在线用户：@ViewData["UserCount"] 人]<br /></td></tr>
                            <tr>
                                <td class="listt">
                                    用户名：
                                </td>
                                <td colspan="2" align="left">
                                    <input class="inputbg2" tabindex="1" value="" maxlength="62" type="text" id="username"
                                        name="username">
                                </td>
                                
                            </tr>
                            <tr>
                                <td class="listt">
                                    密&nbsp;&nbsp;&nbsp;&nbsp;码：
                                </td>
                                <td colspan="2" align="left">
                                    <input class="inputbg2" tabindex="1" maxlength="25" type="password" name="password" id="password">
                                </td>
                            </tr>
                            <tr>
                                <td class="listt">
                                </td>
                                <td height="39" width="165" align="left">
                                    <input src="/images/btn_login.gif" type="image" name="submit">
                                    
                                </td>
                            </tr>
                            <tr>
                                <td class="listt">
                                </td>
                                <td height="39" width="165" align="left">
                                    <input name="guest" id="guest" type="checkbox" onclick="LoginGuest()"/>匿名登录
                                    <a href="/register" id="rgt">注册用户</a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                }
                </div>
                <!--login-->
            </div>
            <!--box-->
            <div class="boxbg png">
            </div>
            <div class="foot png">
                Copyright © 北京电力工程公司 All rights reserved.
            </div>
        </div>
        <!--on_index-->
    </div>
   </body></html>
